/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.annuaireComp.sessions;

import fr.annuaireComp.entities.CompetencePersonnel;
import fr.annuaireComp.entities.Personnel;
import java.util.List;
import java.util.Map;
import javax.ejb.Local;

/**
 *
 * @author MiniK
 */
@Local
public interface CompetencePersonnelLocal {

    void addPersonnelCompetence(Integer IdPersonnel, Integer IdCompetence, Integer anneeXP, String commentaire);

    void editPersonnelCompetence(CompetencePersonnel personnelcomp);

    void deletePersonnelCompetence(int idPersonnel, int idComp);

    void removeAllCompetencesOf(int parameter);

    List<CompetencePersonnel> listCompetencePersonnel();



     public List<CompetencePersonnel> listCompetencePersonnelOf(Personnel pers);

    List<CompetencePersonnel> listCompetencePersonnelsByCompetence(Integer compId);

    List<CompetencePersonnel> listCompetencePersonnelBy(int compId, int anneesXp);

    List<CompetencePersonnel> listCompetenceBy(Map<String,Object> params);
}
